#include "PlayerEntity.hpp"

/** 
* Creates a new player entity.
* @param x X Location.
* @param y Y Location.
* @param dir Initial Direction.
*/
PlayerEntity::PlayerEntity(Map* m, float x, float y, byte dir):CharacterEntity(m, x, y, dir){
	lastNetworkUpdateTime = 0;
    cWidth = 20;
    cHeight = 22;
    cxOffset = 6;
    cyOffset = 10;
}

PlayerEntity::PlayerEntity():CharacterEntity(0, 0, 0, 0){
	lastNetworkUpdateTime = 0;
    cWidth = 20;
    cHeight = 22;
    cxOffset = 6;
    cyOffset = 10;
}

/** 
* Update player state.
*/
void PlayerEntity::update(){
    move();
}

void PlayerEntity::move(){
	CharacterEntity::move();
}